<!--
 * @Description: 
 * @Version: 1.0
 * @Author: wenbin
 * @Date: 2021-06-04 14:17:12
 * @LastEditors: wenbin
 * @LastEditTime: 2021-07-01 14:34:31
 * @FilePath: /magus-plugin/examples/views/test/testAdd.vue
 * Copyright (C) 2021 wenbin. All rights reserved.
-->
<template>
  <div class="" style="height: 100%;">
    <magus-add-template title="测试新增">
      <template slot="header"><!-- 头部右边需要 --></template>
      <template slot="main">
        <el-input
          v-model="value"
          size="mini"
          type="textarea"
          :rows="4"
          resize="none"
        ></el-input>
        <el-radio-group v-model="radio1" size="mini">
          <el-radio-button label="上海"></el-radio-button>
          <el-radio-button label="北京"></el-radio-button>
          <el-radio-button label="广州"></el-radio-button>
          <el-radio-button label="深圳"></el-radio-button>
        </el-radio-group>
        <el-time-select
          v-model="value"
          :picker-options="{
            start: '08:30',
            step: '00:15',
            end: '18:30',
          }"
          placeholder="选择时间"
        >
        </el-time-select>
        <el-date-picker
          v-model="value1"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        >
        </el-date-picker>
        <el-collapse v-model="activeNames">
          <el-collapse-item title="一致性 Consistency" name="1">
            <div>
              与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；
            </div>
            <div>
              在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。
            </div>
          </el-collapse-item>
          <el-collapse-item title="反馈 Feedback" name="2">
            <div>
              控制反馈：通过界面样式和交互动效让用户可以清晰的感知自己的操作；
            </div>
            <div>页面反馈：操作后，通过页面元素的变化清晰地展现当前状态。</div>
          </el-collapse-item>
          <el-collapse-item title="效率 Efficiency" name="3">
            <div>简化流程：设计简洁直观的操作流程；</div>
            <div>
              清晰明确：语言表达清晰且表意明确，让用户快速理解进而作出决策；
            </div>
            <div>
              帮助用户识别：界面简单直白，让用户快速识别而非回忆，减少用户记忆负担。
            </div>
          </el-collapse-item>
          <el-collapse-item title="可控 Controllability" name="4">
            <div>
              用户决策：根据场景可给予用户操作建议或安全提示，但不能代替用户进行决策；
            </div>
            <div>
              结果可控：用户可以自由的进行操作，包括撤销、回退和终止当前操作等。
            </div>
          </el-collapse-item>
        </el-collapse>
        <magus-upload-file
          methods="put"
          :formDataValue="{ projectName: '1111' }"
          :action="`${equipmentApi.importEquipmentPoint}`"
        ></magus-upload-file>
        <magus-upload-file-dialog
          :isShow="isShow"
          @cancel="isShow = false"
          :formDataValue="{ projectName: '1111' }"
          methods="put"
          :action="`${equipmentApi.importEquipmentPoint}`"
        ></magus-upload-file-dialog>
        <magus-image-upload
          value="25b629ed-0264-45c9-b081-cb3864d77966"
          :uploadUrl="
            equipmentApi.uploadImage('248badb4-9168-436f-a853-0b143ec2a3d1')
          "
          :baseImageUrl="equipmentApi.getImageUrl"
          :data="{ category: 'template' }"
        ></magus-image-upload>
      </template>
      <template slot="footer">
        <el-button type="primary" @click="isShow = true" size="mini"
          >11111</el-button
        >
      </template>
    </magus-add-template>
  </div>
</template>

<script>
import equipmentApi from "@examples/api/equipment.js";
export default {
  name: "testAdd",
  components: {},
  data() {
    return {
      value: "111111",
      radio1: "",
      value1: [],
      activeNames: ["1", "2", "3", "4"],
      equipmentApi: equipmentApi,
      isShow: false,
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {},
  beforeMount() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {},
  activated() {},
};
</script>
<style lang="scss" scoped></style>
